Platform Explorer / Nuxeo Platform 2023.13

Component org.nuxeo.ecm.diff.actions

Resolution Order

179
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.diff.actions">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <!-- Current selection actions -->
    <action id="CURRENT_DOCUMENT_SELECTION_DIFF"
      link="#{diffActions.prepareCurrentDocumentSelectionDiff}" label="command.clipboard.diff"
      order="100">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canDiffCurrentDocumentSelection</filter-id>
    </action>

    <!-- Trash actions -->
    <action id="CURRENT_TRASH_SELECTION_DIFF" link="#{diffActions.prepareCurrentTrashSelectionDiff}"
      label="command.clipboard.diff" order="100">
      <category>CURRENT_SELECTION_TRASH_LIST</category>
      <filter-id>canDiffCurrentTrashSelection</filter-id>
    </action>

    <!-- Section actions -->
    <action id="CURRENT_SECTION_SELECTION_DIFF"
      link="#{diffActions.prepareCurrentSectionSelectionDiff}" label="command.clipboard.diff"
      order="100">
      <category>CURRENT_SELECTION_SECTIONS_LIST</category>
      <filter-id>canDiffCurrentSectionSelection</filter-id>
    </action>

    <!-- Worklist actions -->
    <action id="CURRENT_DEFAULT_SELECTION_DIFF"
      link="#{diffActions.prepareCurrentDefaultSelectionDiff}" label="command.clipboard.diff"
      icon="/icons/action_diff.png" order="100">
      <category>DEFAULT_LIST</category>
      <filter-id>canDiffCurrentDefaultSelection</filter-id>
    </action>

    <!-- Version actions -->
    <action id="CURRENT_VERSION_SELECTION_DIFF"
      link="#{diffActions.prepareCurrentVersionSelectionDiff}" label="command.clipboard.diff"
      order="100">
      <category>CURRENT_VERSION_SELECTION_LIST</category>
      <filter-id>canDiffCurrentVersionSelection</filter-id>
    </action>

    <action id="CURRENT_VERSION_DIFF" link="#{diffActions.prepareCurrentVersionDiff}"
      label="command.versions.diffCurrent" order="100">
      <category>VERSION_LIST_ITEM</category>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="canDiffCurrentDocumentSelection">
      <rule grant="true">
        <condition>#{diffActions.canDiffCurrentDocumentSelection}
        </condition>
      </rule>
    </filter>

    <filter id="canDiffCurrentTrashSelection">
      <rule grant="true">
        <condition>#{diffActions.canDiffCurrentTrashSelection}
        </condition>
      </rule>
    </filter>

    <filter id="canDiffCurrentSectionSelection">
      <rule grant="true">
        <condition>#{diffActions.canDiffCurrentSectionSelection}
        </condition>
      </rule>
    </filter>

    <filter id="canDiffCurrentVersionSelection">
      <rule grant="true">
        <condition>#{diffActions.canDiffCurrentVersionSelection}
        </condition>
      </rule>
    </filter>

    <filter id="canDiffCurrentDefaultSelection">
      <rule grant="true">
        <condition>#{diffActions.canDiffCurrentDefaultSelection}
        </condition>
      </rule>
    </filter>

  </extension>

</component>